package com.lintesis.lintesismodel.protocolo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import com.lintesis.lintesismodel.common.Type;
import com.lintesis.lintesismodel.common.hibernate.BussinessObject;
@Entity
public class Almacenamiento extends BussinessObject {

	@javax.persistence.SequenceGenerator(name="SEQ_ALMACENAMIENTO", sequenceName="SEQ_ALMACENAMIENTO", allocationSize=1)
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_ALMACENAMIENTO")
	
	private Integer almacenamientoId;
	@ManyToOne
	private Type nivel;
	private Integer numero;
	private Float tempMinima;
	private Float tempMaxima;
	
	
	public Integer getAlmacenamientoId() {
		return almacenamientoId;
	}

	public void setAlmacenamientoId(Integer almacenamientoId) {
		this.almacenamientoId = almacenamientoId;
	}

	public Type getNivel() {
		return nivel;
	}

	public void setNivel(Type nivel) {
		this.nivel = nivel;
	}

	public Integer getNumero() {
		return numero;
	}

	public void setNumero(Integer numero) {
		this.numero = numero;
	}

	public Float getTempMinima() {
		return tempMinima;
	}

	public void setTempMinima(Float tempMinima) {
		this.tempMinima = tempMinima;
	}

	public Float getTempMaxima() {
		return tempMaxima;
	}

	public void setTempMaxima(Float tempMaxima) {
		this.tempMaxima = tempMaxima;
	}

	@Override
	public void doAfterDelete() {
		// TODO Auto-generated method stub
	}

	@Override
	public void doAfterSave() {
		// TODO Auto-generated method stub
	}

	@Override
	public void doBeforeDelete() {
		// TODO Auto-generated method stub
	}

	@Override
	public void doBeforeSave() {
		// TODO Auto-generated method stub
	}

	@Override
	public Integer getId() {
		return almacenamientoId;
	}

	@Override
	public String getObjectDescription() {
		return null;
	}

}
